﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using AMS.DD35.ServiceLib;
using System.ServiceModel.Description;
using AMS.DD35.ServiceLib.Services;

namespace AMS.DD35.SelfHost
{
    class Program
    {
        static void Main(string[] args)
        {
            ServiceHost serviceHost = new ServiceHost(typeof(DD35MasterService));

            serviceHost.Open();

            Console.WriteLine("Dungeons and Dragons 3.5e Master Service Host is running...");
            foreach (ServiceEndpoint se in serviceHost.Description.Endpoints)
            {
                Console.WriteLine(se.Address.ToString());
            }

            Console.ReadLine();

            serviceHost.Close();
        }
    }
}
